package com.shph.validation.exception;

import java.util.HashMap;
import java.util.Map;

/**
 * 自定义对象校验时，校验异常返回正常携带异常现象
 */
public class ValidFailResultException extends ValidException {
    // 校验失败，返回异常
    private Map<String, String> errorMap;

    public ValidFailResultException(Map<String, String> errorMap) {
        super("校验失败返回！");
        this.errorMap = errorMap;
    }

    public Map<String, String> getErrorMap() {
        return errorMap;
    }

    public void setErrorMap(Map<String, String> errorMap) {
        this.errorMap = errorMap;
    }
}
